import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {

  },
  state: {
    imageSize: 5, //图片大小限制1M
    videoSize: 10, //视频大小限制
    memberType: '',
    count: 0,
    wxHost: '192.168.16.203',
    // wxHost:'ws://192.168.16.203:7069',
  },
  getters: {

  },
  mutations: {
    change_type(state, anotherType) {
      state.memberType = anotherType
    },
    change_count(state, count) {
      state.count = count
    },
  },
  actions: {
    changeType({
      commit
    }, anotherType) {
      commit('change_type', anotherType)
    },
    changeCount({
      commit
    }, count) {
      commit('change_count', count)
    },
  },

})
